package oop;

import java.util.Date;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        Improme game=new Improme();
        do{
          game.menu();
            int key=scanner.nextInt();
            switch(key){
                case 1:
                 game.chargemenu();
                    break;
                case 2:
                   game.income();
                    break;
                case 3:
                 game.consume();
                    break;
                case 4:
                  game.exit();
                    break;
                default:
                    System.out.println("输入有误,请重试");
            }
        }while(game.bool);
    }
}
